package com.xeem.core.utils
{
	/**
	 * 事件代理
	 * @author harrihuang
	 * @email harrihuang@live.cn
	 * @version 1.0
	 * @fp version 9+
	 */
	
	public class EventDelegate
	{
		public function EventDelegate()
		{
		}
		
		public static function create(f:Function,... arg):Function {
			var F:Boolean=false;
			var _f:Function=function(e:*,..._arg){
				_arg=arg;
				if(!F)
					{F=true;_arg.unshift(e)}
				f.apply(null,_arg);
			};
			return _f;
		}
		public static function toString():String {
			return "Class EventDelegate";
		}
	}
}